using System.Collections.Generic;
using System.Linq;
using UnityEngine;

[CreateAssetMenu(fileName = "Effect27-给目标恢复额外生命几点", menuName = "Skill/Effect/Effect27-给目标恢复额外生命几点", order = 27)]
public class Effect27 : EffectBase
{
    public int extraHpCount;
    public override void Apply(Pair pair, GameEvent e, List<Chess> targets)
    {
        if(targets == null || targets.Count == 0) return;

        foreach (var target in targets)
        {
            target.HealExtraHp(extraHpCount);
        }
    }
}